import {Button,  Layout, Text} from "@ui-kitten/components";
import React from 'react';
import {createStackNavigator} from "@react-navigation/stack";


export  const UserCard = (props,{ navigation }) => {

    // const navigateDetails = () => {
    //     navigation.navigate('Login');
    // };

    return (
        <Layout style={{alignItems: 'center'}}>
            <Text>{props.name}</Text>
            <Button status='info' >退出登陆</Button>
        </Layout>
    );
};